package promote.brozen.algorithm.tree.balance.bt;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Brozen
 * @date 2020/1/13 7:24 PM
 */
@Setter
@Getter
public class BTreeChildChainNode<K extends Comparable<K>> {

    private BTreeNode<K> node;

    private BTreeDataChainNode<K> prev;

    private BTreeDataChainNode<K> next;

    private BTreeNode<K> child;

    public BTreeChildChainNode(BTreeNode<K> node) {
        this.node = node;
    }

    @Override
    public String toString() {
        return "Child[hash=" + this.hashCode() + "]";
    }
}
